#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"


void testzzzcouncilroomcardplay(){

	struct gameState *state;

	state=newGame();

	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
			   sea_hag, tribute, smithy};

	initializeGame(2, k, 1, state);
	int currentPlayer=0;
	int secondPlayer=1;
	int i=0;
	int handPos=0;

	state->handCount[currentPlayer]=5;

	state->numPlayers=3;
	state->numBuys=0;
	state->handCount[currentPlayer]=5;
	state->handCount[secondPlayer]=5;

	state->hand[currentPlayer][handPos] = council_room;
	state->hand[currentPlayer][1] = estate;
	state->hand[currentPlayer][2] = duchy;
	state->hand[currentPlayer][3] = province;
	state->hand[currentPlayer][4] = great_hall; //total 10

	zzzconsoleroomcardplay( i, currentPlayer, handPos, state);

	if(state->numBuys==1){

		printf("zzzcouncilroomcardplay(): PASS number of buys increase. \n");
	}
	else{

		printf("zzzcouncilroomcardplay(): FAIL number of buys increase.\n");
	}


	if(state->handCount[currentPlayer]==8){

		printf("zzzcouncilroomcardplay(): PASS number of current player's cards increase +4. \n");
	}
	else{

		printf("zzzcouncilroomcardplay(): FAIL number of current player's cards increase +4.\n");
	}


	if(state->handCount[secondPlayer]==6){

		printf("zzzcouncilroomcardplay(): PASS number of opponent player's cards increase +1. \n");
	}
	else{

		printf("zzzcouncilroomcardplay(): FAIL number of opponent player's cards increase +1.\n");
	}



}


int main(int argc, char *argv[])
{

	testzzzcouncilroomcardplay();
    return 0;
}



